package com.ml.util;

public class KlineDataUtils {
    public static String getPeriod(String period) {
        String t = "";
        switch (period) {
            case "1min":
                t = "1";
                break;
            case "5min":
                t = "5";
                break;
            case "15min":
                t = "15";
                break;
            case "30min":
                t = "30";
                break;
            case "60min":
                t = "60";
                break;
            case "240min":
                t = "240";
                break;
            case "1day":
                t = "1440";
                break;
            case "1week":
                t = "10080";
                break; // 10080为分钟
            case "1mon":
                t = "43200";
                break;
            default:
                t = "1";
                break;
        }
        return t;
    }
    
}
